# $Id$
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>

pkgbase=libreoffice-still-i18n

pkgver=5.3.6
pkgrel=1
_rcver=${pkgver}.1
#_oodlver=${pkgver}.0.beta1
_oodlver=${pkgver}

arch=('any')
url="http://www.documentfoundation.org"
license=('LGPL')

#https://download.documentfoundation.org/mirrors/all.html
_url="https://download.documentfoundation.org/libreoffice/stable"
#_url="https://download.documentfoundation.org/libreoffice/testing"
#_url="https://dev-builds.libreoffice.org/pre-releases"
#_url="https://www.libreoffice.org/download/pre-releases"

#_url+="/${pkgver}-rc2/rpm/x86"
_url+="/${pkgver}/rpm/x86"
#_url+="/rpm/x86"

_languages=(
  'af            "Afrikaans"'
  'am            "Amharic"'
  'ar            "Arabic"'
  'as            "Assamese (India)"'
  'ast           "Asturianu"'
  'be            "Belarusian"'
  'bg            "Bulgarian"'
  'bn            "Bengali"'
  'bn-IN         "Bengali (India)"'
  'bo            "Tibetan"'
  'br            "Breton"'
  'brx           "Bodo"'
  'bs            "Bosnian"'
  'ca            "Catalan"'
  'ca-valencia   "Catalan (Valencia)"'
  'cs            "Czech"'
  'cy            "Welsh"'
  'da            "Danish"'
  'de            "German"'
  'dgo           "Dogri"'
  'dz            "Dzongkha"'
  'el            "Greek"'
  'en-GB         "English (GB)"'
  'en-ZA         "English (ZA)"'
  'eo            "Esperanto"'
  'es            "Spanish"'
  'et            "Estonian"'
  'eu            "Basque"'
  'fa            "Persian"'
  'fi            "Finnish"'
  'fr            "French"'
  'ga            "Irish"'
  'gd            "Gaelic (Scottish)"'
  'gl            "Galician"'
  'gu            "Gujarati"'
  'he            "Hebrew"'
  'hi            "Hindi"'
  'hr            "Croatian"'
  'hu            "Hungarian"'
  'id            "Indonesian"'
  'is            "Icelandic"'
  'it            "Italian"'
  'ja            "Japanese"'
  'ka            "Georgian"'
  'kk            "Kazakh"'
  'km            "Khmer (Cambodia)"'
  'kmr-Latn      "Kurdish"'
  'kn            "Kannada"'
  'ko            "Korean"'
  'kok           "Konkani"'
  'ks            "Kashmiri"'
  'lb            "Luxembourgish"'
  'lo            "Lao"'
  'lt            "Lithuanian"'
  'lv            "Latvian"'
  'mai           "Maithili"'
  'mk            "Macedonian"'
  'ml            "Malayalam"'
  'mn            "Mongolian"'
  'mni           "Manipuri"'
  'mr            "Marathi"'
  'my            "Burmese"'
  'nb            "Norwegian Bokmal"'
  'ne            "Nepali"'
  'nl            "Dutch"'
  'nn            "Norwegian Nynorsk"'
  'nr            "Ndebele (South)"'
  'nso           "Northern Sotho"'
  'oc            "Occitan"'
  'om            "Oromo"'
  'or            "Oriya"'
  'pa-IN         "Punjabi (India)"'
  'pl            "Polish"'
  'pt            "Portuguese"'
  'pt-BR         "Portuguese (Brasil)"'
  'ro            "Romanian"'
  'ru            "Russian"'
  'rw            "Kinyarwanda"'
  'sa-IN         "Sanskrit (India)"'
  'sat           "Santali"'
  'sd            "Sindhi"'
  'si            "Singhalese"'
  'sid           "Sidama"'
  'sk            "Slovak"'
  'sl            "Slovenian"'
  'sq            "Albanien"'
  'sr            "Serbian"'
  'sr-Latn       "Serbian (Latin)"'
  'ss            "Swati"'
  'st            "Southern Sotho"'
  'sv            "Swedish"'
  'sw-TZ         "Swahili (Tanzania)"'
  'ta            "Tamil"'
  'te            "Telugu"'
  'tg            "Tajik"'
  'th            "Thai"'
  'tn            "Tswana"'
  'tr            "Turkish"'
  'ts            "Tsonga"'
  'tt            "Tatar"'
  'ug            "Uighur"'
  'uk            "Ukrainian"'
  'uz            "Uzbek"'
  've            "Venda"'
  'vi            "Vietnamese"'
  'xh            "Xhosa"'
  'zh-CN         "Chinese (simplified)"'
  'zh-TW         "Chinese (traditional)"'
  'zu            "Zulu"'
)
validpgpkeys=('C2839ECAD9408FBE9531C3E9F434A1EFAFEEAEA3') # "LibreOffice Build Team (CODE SIGNING KEY) <build@documentfoundation.org>"
sha256sums=('52c8063b37697d2f45618b2c60482d79aff7e7cc16ec64c8b2e4d2c4074c2b80'
            'SKIP'
            '2ff0723bf4ec9e622f7e5c7be83fbe2f547a5a64b90fcfd0b6330e8ea392cfdd'
            'SKIP'
            '101a872d26a135fe0f65fde020861fb0be06423268de36efac7d8cb762869883'
            'SKIP'
            '430d1ff887a87c62c965d5ba343233e86613a7ad2143af04b693b502dc2e0837'
            'SKIP'
            'fe0e244f131b93b2c2a90552726faf7eada281c8a3f4ad9f0792d2b061219b92'
            'SKIP'
            'c8dd358913a5c8449df117d1f571a59665d79035bcd89bb824b3fd4251f673c4'
            'SKIP'
            '53e581c5358982e3e7b779e769e91aa519fca962cbc8cea5ba89033fbd47c290'
            'SKIP'
            'a959bd55e2d76337793d9517f45132e79aa83364a1c49c4547ee5e50499986de'
            'SKIP'
            '09f2af90a83fd48c94974964ed2bfbe51c598053e6d69e17893d162acf937eaa'
            'SKIP'
            '75fa891f2c582377ee6c62045b18d80901a82296dc96c524c02d2a45c7f7adb1'
            'SKIP'
            '72019fb08974d4210efb72a75f7b1e3bc0c0a9434d0bdd769cb5ea60a84091c1'
            'SKIP'
            '7580d57e95773f2bc4a5e668004a7a4fd8c902806fbd6dfcde1a929e47a81284'
            'SKIP'
            '6e27de93f11995bea8f8bd443e714d0bee32826836a64e67183a4b9eafae250b'
            'SKIP'
            'c830157ac1fbf8f1c7916a6f814098395a966a3f3afa1d930ec7e270131427fa'
            'SKIP'
            '16a702cdc0e3eb8b8180c52ea0b58d7f52523d13c2f0a6f4ecd4b3e7a0e8a575'
            'SKIP'
            '1133dd6bd9c4034a95a4bb75dd3699e792b75d09245eb2453678ee621898a271'
            'SKIP'
            '762fb19a79684dba31c5ad722e2b98406443daca06e82cb5035cdf39218920fb'
            'SKIP'
            '45e72e76e6b0ca50d355130b0f1791390da32af9c089da629644b46217ad4b3d'
            'SKIP'
            '4817b30d4e3f32d04e2a1af721e48f54b02f3ccc50cfb9c68c40112355106c9a'
            'SKIP'
            '75faf796619823103a5e259c01d4df3dc2bc96374091a2104e83f6633f12599a'
            'SKIP'
            'acab1f0c04f1afb6a7e2bcbe2b1ed4e4e52817951376a75b1b67c06301e3461b'
            'SKIP'
            '18dfd8d202f4d1f38f51db6dbd0d2c7182e044681ae299269be9a5e0e74c672e'
            'SKIP'
            'dfd874263d32553d2e796fa5b6dcc489f55d3581ad99b2caa2bf0e30a0a5a605'
            'SKIP'
            'ac9f8d861fe7d36006ec021a8b2086d50b13313a87b34da7e863e11bc6cfb708'
            'SKIP'
            'dad41d3b7a40ac225cd3f65e5017a00bab1ce2563b7d923e216e61b48dda44a7'
            'SKIP'
            '475d5de93a9d4ee96e2f2816ef4ed5e35945f6dd10083da134a29aae90b2f7d8'
            'SKIP'
            '1aabf0878476ba6e92f7528bef3597680d8a8871e7da2e8109bbc5488957a0e9'
            'SKIP'
            '6b511899ab13f3692334685b91391f5109773d92998d0466a634629c0748f491'
            'SKIP'
            'c35e1b23eae46e537c77ae0e26b1a2af16c04062beed527c09e352e6d496f93a'
            'SKIP'
            '68f86906fda838bc7ed5f47fb0f301de0e0b9abba020c6440a5ac8a5a29abf4e'
            'SKIP'
            '286c924f2968217d46be07b5c69c08c6d44f1edae2dbcc51dd7a478c0cac143c'
            'SKIP'
            '12d3c1fbc44f2b1e35f916e7f9885760721cf35cb10d3303dffbd5f1f510c002'
            'SKIP'
            '06f1afaa70c69f0067841613eb76fab398b0f82824876a5af3fd98c38c4a0ac6'
            'SKIP'
            '030b98ac87ef2db589745eede39dbc9230aaf761a2f3642a82423fc7a4a56a26'
            'SKIP'
            '6f127401c9d6e784937d7470a79bffecb3a97896e217b3baf0c71b5299ae4672'
            'SKIP'
            'dafc4df56db58d3d2e164452e7e76d3f04afbde32e72125b2bf98b514ad8e872'
            'SKIP'
            'da210805d41df303dfbdf9c7e7191b768684a411b2193d6938b0561dbfb31594'
            'SKIP'
            'ccabd3fc11be5b0c9236daccd84afe0c4d9e4d41a064cafcaf2ca8f9776931ac'
            'SKIP'
            'eba6557a2e071b30e0ff3170c6cad522dfad4cac7cef6319910fed3c966871c2'
            'SKIP'
            '1ac87aa736ab176bea15e59c0d154c457211d79bbbc00d2b9358ce217e8baeb7'
            'SKIP'
            'e075b33ce181522131b451e157e24b641297f9aaefc6e752fc1027ca68cc5c99'
            'SKIP'
            'd81c199ce5b3e50834bac5471fcbdf0cd4651e05b0af36d1f380a006023ee10f'
            'SKIP'
            'b2c550336b890f60658a0d8a127b1584374e27187ca3bfecd25ff053009a5042'
            'SKIP'
            '1c8f97427b79921e2680d1c9be33f2bcf64611c103a0cb063c29f9942c007701'
            'SKIP'
            '71970dc159e79029c89e34804c8ca07ffcd7c14ed3c4bcd8ecd8f4bad989aad6'
            'SKIP'
            '0bfa90acb6a660e05c750e2c29e14247eabf38b97be2f446cfdf18cd22283787'
            'SKIP'
            '27b99119a18fe6d80f37750296cff477f96cf942d668515f3f1a37ff94f34078'
            'SKIP'
            '10bfd9e029d0a713f255e4d3aa0d4f1adabe47552de03ccc083e89b949bf7d71'
            'SKIP'
            '2ebbd4047d411e0cd44073e7a21d7abb0288509a412f7ef8058fdff9210ba6e8'
            'SKIP'
            'f1a12ff7dc68626b34b3cd893678b24982fd48cb43fb7c025a9b816f8faca802'
            'SKIP'
            'fafc238e04b8c69f17d140772905f758af4a16d4134d01f1b32873154bd0e3c6'
            'SKIP'
            'b090261564ae2591972336f30bfc9db6dd478e1340cb78c424da957be2209f8d'
            'SKIP'
            '5fb929a76bef790255e2850936e59b30418db453f9d82373ef47352fc9c80cd3'
            'SKIP'
            'de1cc1f2d1259dc63a87aa10ebe8b910edbfc7779f90c3ce5342701513290a23'
            'SKIP'
            '7fe0d764425fac379f1c4c156e574ebfeee6c9294f629645b2e83614c2055318'
            'SKIP'
            'b547a744e27ebed0f822578fc6dec598ae8be5b834e39366e1e50e667e709708'
            'SKIP'
            'a354755a2084f8b71da82dc51b2c3be05ccb6051f21a2690fae32ccda12e1310'
            'SKIP'
            '6323166fc7e4fd90f360a4905b0e893632261cde567a2af3aa62752a7c1cd59d'
            'SKIP'
            '9a8e784b69ffda09441e809f91a4161acb98e624c7cf14092866bcba68fc5ba7'
            'SKIP'
            'bc3fe5f1657ff4d7283e521d73e2a883e39d20d39e0b3843292c401105602b4a'
            'SKIP'
            'a8ec257feaa676e9ed0d83a4d54872e85dc29f52e152b31b6e018fa80f1d932e'
            'SKIP'
            '32711ae4b6cdbbd5932db6240f3a9e8d5e4a1956324db564fe9f666a95522de8'
            'SKIP'
            'd754c79e2642a490eb1fdb1ff308b26c661e1729ea8b7c80c327bd8c45ce0d51'
            'SKIP'
            '805d11cd271624f7f591c23d0d276fc9fac7780d23e050b19f3ce24dfe4a25ab'
            'SKIP'
            '9d8ac1e01d310aaf47da4be470fc9b08e33f6f1c25596ce944e51fa7797fe367'
            'SKIP'
            '0d77478fa2f19fc6c17d347d9429c60c97954dda7eefa858a2e9e9eeb72ffb0e'
            'SKIP'
            '5e0da5ff866291545667daf56fbdb76de5c1a6ed676fafa4f9586038bd94cb13'
            'SKIP'
            'cb3135d0522be67befb4309eae534f39c208456405dea2e0f120f6b6f2e13cf3'
            'SKIP'
            'a1e25f71eef4ccc035ecfe8a5e993975e8b9f7e47d89fa4ccbf3297a296035f2'
            'SKIP'
            '7f4743170b1b8bc581dbc3a8107059ed8296df8e2f3a912f3272e74e49c3a73a'
            'SKIP'
            '370cef823c1a42063fbe10563b10999975c01e17250953b43d25277b8ba8515e'
            'SKIP'
            'fcd5f01696af7495098f332fddd62bb57f6fa230f2d4ac994c7be3871b521501'
            'SKIP'
            '984b03b0830fe53ec7587580b8d7ef381e065412235395430cb58a16355baba6'
            'SKIP'
            '999ac5205e9b575e050b748b576fc8f666ef7d004d796f5089f97dc40963767d'
            'SKIP'
            '22a424d12fe28c547f8cad44685fff7064e26f3e320f0104ec2373d60e955833'
            'SKIP'
            'cc4a7f8bcc9f09c533ff01b80d86d1c27f13003a907c88d8d05a848d62347810'
            'SKIP'
            '07a2c12497058c9c133b2989734aaa2f82c39455bbada8fb8bb96166b8065c95'
            'SKIP'
            'e42e8fa6a9f8a74f78ef96e0b8132696094835965ad0bc94053ed11eed1712c3'
            'SKIP'
            'd4adc852b497d681d32383ea62380985672c3cc811b6bda4c802dbe451d2d00a'
            'SKIP'
            '6311b1d17811b101da338a3d8c21ba8166d2f08322fa3e7a1018ad31b73c26cd'
            'SKIP'
            '5d29a36130614b5a8f3557b44f8a908acc06831ddb89c12d1931d24054727589'
            'SKIP'
            '56294541604928d38591ca29a6e14bdecb81faf03948ebb36711a625e7e1911b'
            'SKIP'
            '167348767ee17fbdba06b87b3cd3397a8d9e411781cebf996131cd253438a453'
            'SKIP'
            '92b8405069c07173d1136b7713c2083f220a19cbf2ec8a9dd87d18620da52f9a'
            'SKIP'
            'e21292f585b94a427bdf4fbaf69a003617b6a6172004866ff3aef9f557423b82'
            'SKIP'
            '53978c872c5ae533dadb916ac1528af910561f28124242284e551c9186e62a67'
            'SKIP'
            '2f30be22545523a23e3c7f2b6535dc9c71bc7fc41b716b41932e91a237bf381f'
            'SKIP'
            'b91600a3e7586aa9f2c7d8b78fbfb81680a0ba0baa3da0b8bb7d2381b01b0583'
            'SKIP'
            '013adde61bfce770ff9eab8699c1e1f2d8b3bb3a34a053a59eb7c442c4ba0359'
            'SKIP'
            '608bbb3c58651cd797275a1081c2a5e8aa9c6171d25d2d109b553408c8503979'
            'SKIP'
            '4de02bb9cf5bed44a466c7d67fe2aa858b14d4e0f18bcc739f6354a36d9aa600'
            'SKIP'
            'b37635f3a58e4517792b17995b5896a3ec580e67f14d9fcc2f89a17f15457955'
            'SKIP'
            'bc50ab13c7db1296945fb65cd0eed7b07504bc022849a4d1edf2ea195365d859'
            'SKIP'
            'c550b08d8a9c14eb63b10b4b31d4327971dab6c29625d071a31e19a672068f72'
            'SKIP'
            '56994a8fb6b495736952b074f5fffe022db3e395cf171c7afa62f97eae30f571'
            'SKIP'
            '44cd889b5c15b5a0530a03a07ba348f19810c31bfff2f47336c9108ab32f89f6'
            'SKIP'
            'dfd5c4eae04bea1ec634cf06becaf706197ac94b79b58eb510d658825cd51c17'
            'SKIP'
            'c5a921bcea14b7cda2aa3efdd18298f2c9f86af763ca3869fc5e283b8d7dcd3b'
            'SKIP'
            '3e2dfc00ec71d835299256d86a2316766794e2fc6c7e71d06a582e7af9d0a819'
            'SKIP'
            '42ced0739f9bc5d1ee2e24ad80138a464f8f56ea25ae2ce3bb54be7fd17dba54'
            'SKIP'
            '61460839f40a10bf62ab5ef3b8a7c579a8445530dd0268169c3176bd511e4d6d'
            'SKIP'
            '2391eafc5103f4bba3ed9c5ea124ac46d65c99c5ce1818a4f09e06daa1fffd9e'
            'SKIP'
            '58f1f277b2bc543285020fcc41ee374103159d5237ea739201f76c57af6e2962'
            'SKIP'
            '63c8ebdeaae9ad13fa31019be06eacc9857ecabfb29fc18e296ca399ea5d93a0'
            'SKIP'
            'f1973ed95d30ed124972c04db3d97075cd186d9b154adb9a029b6693eb90142f'
            'SKIP'
            '596da40f27d4e2e570981e91549df419b777bb42362c9ad6712d67aaa7ebc6c6'
            'SKIP'
            '27052cb4d40241b1e05fd6ae3054d5977f26bc6012bf680564cd67441e26c42b'
            'SKIP'
            'e47c1d81929e5f3ac12a66df9a457cb6c12f62eef3509e2973d31d5b7205427f'
            'SKIP'
            '8bc679c156ac130a255f7c4e5415219a5fc63b043a5e3e567b82d24e633dc932'
            'SKIP'
            '701536e0369b4555251193940e7a35f04da0f4c9a25361202fcaf4bb9ba28733'
            'SKIP'
            '39a130e5dc7af8d7a46851cc0158984393ad3ba2e71f8c83e7b297536cc380f3'
            'SKIP'
            'b9ae888c8e74fce5286193d2d3afef3027bb69e9a385298cf4cb87714b6b2031'
            'SKIP'
            'a458b815fa38520e9e58cf4e9c1bd85c82898ac2e71d340421c0f274af8255b8'
            'SKIP'
            'e0d9971b8d294cba7d76132c675cf4e6eb8fe9f580bcf330af0e700e96339f9d'
            'SKIP'
            '0c6004ee8d629dfb1eb70281dcd9f6335231b624590d98ebb450a9a7827da50a'
            'SKIP'
            'e0f18d8253d5dba8ff4507f77a2d4554a8bfd9bea747abeaae58759d64b93348'
            'SKIP'
            '595cb5c5257e4f6906d97b6da9fc80fe1718e2d1928be6059e2e3c6e7a652a58'
            'SKIP'
            '055027ecab237fd439f24a0f39c0c30129b05e29cb5ecc476393a1f682a52a5e'
            'SKIP'
            'fbe2f90b69a9fd9b871eff4e17c76ab12e84d1ac4b133cf66687658c870107be'
            'SKIP'
            'da055b74ed0f79d972dc56a6a0ef6c8c0a1bbb7b74687896af0904bd1ad6e467'
            'SKIP'
            '8bb0ef5879d9c4635aa7ae240186b21ecdccae8a7ecfa18891c5b654906c7fa4'
            'SKIP'
            '47e419e744de95d7059956bd90e076cb89c22db5f5783cd015f462fb45e492b7'
            'SKIP'
            '7bd81b28c10e842bd9417f16723908bb473dd2ab0682e2077aafe6294a199f8c'
            'SKIP'
            '2758838b206e92892ca977126fc74b5653edcaa2b45159f0d6fc0b55aaa816cf'
            'SKIP'
            '95dba60505b458194e4c9fa46042cf8f52a489eaad48248ba16867b48720fab1'
            'SKIP'
            'ab0f8c1621bebc1230027979a5eda13a9e6b4354ad1abd080770b264cd74ef09'
            'SKIP'
            'ece63798c83c9697649af6ab5e0a1c56af31cbf29ff88f66dd426141a8347b90'
            'SKIP'
            'b19a19adfcf82695c9cf6d71feb1dc751466479347ad77c05bb6791e75d1cde8'
            'SKIP'
            '8cedb4282e13ed6a5170eb3a634e29510406600e8889466501d21e4013b36559'
            'SKIP'
            'f7c2938e98cc614f39da208ac94f07d41028ed6004f68481d8f737c141426f7f'
            'SKIP'
            '2ab1bd0449ec2cbe5e4f85b4cced8cc5e7950a921dfa5b748513850500a0183f'
            'SKIP'
            '2af20a2a2f0e855eed2967cd3593ee562f7ed637b29be36f890a741a32db1b18'
            'SKIP'
            '33de7b43a77936ca98f4678709bdacf851b6e352b4261cd1cd55cc6185aef3b0'
            'SKIP'
            'd8d1bf023f43f19db046de88aef207cd6027e7453c7eeec60c6bc0bca1f402e2'
            'SKIP'
            '29f8257c254044c88b2f9f2375adf9a5293d20779e1380e3110f6cc389b06ae5'
            'SKIP'
            '44f725fba128dec36088d38cc760448419b5c9df3063c47c5b4f92d672ce70ad'
            'SKIP'
            '5ed83d21cd5421fd750f64beb98b392ae15547a99be81398a979ca677e4bc154'
            'SKIP'
            '9f93e65a5f3fdc824709309c1efca0040e12eabd8c04609dc55dfec0945ec1fc'
            'SKIP'
            'aeda01b223ef3661a79836e5f55157c44aac1c249ae69c63ae0a400a2fd9585c'
            'SKIP'
            'beef4ce34f8a0235569d64e2c964c16ec7015f7b3dad65353e9796e560a1b75a'
            'SKIP'
            '836c3dbb4b4aa01aed18680b4d6ab571d5ab99ea1bd00102b5b97472d9bbfa91'
            'SKIP'
            '0b6a5e39e0e84c488b93fc4c5b44fed181357feba3417f9bdcee2a0d4e329e9e'
            'SKIP'
            'ff163db6f80b9189f26100ff707a3836cb85471d6a1c7ecc7d5ead10eee853d6'
            'SKIP'
            '194f7700dfbc8eeea8a9fdeeb97b585a4b29b235d77a0c5796e2c1b5a7a37c99'
            'SKIP'
            '6140f40eac2ddb09fc02fd967044e3cb4a42fb4ec63f80da22643b4f93c67201'
            'SKIP'
            'b4ddcdea83b6a0bf5462011219a131f7fe20a2d6f03a35c99e4ba50f966b9539'
            'SKIP'
            '766bd5573d0bc8cdb7dcfecd1c281438b679ddbd17a8686588625fe69fd59984'
            'SKIP'
            '827610f4d9ebe929467178ed99c02144fdf2e328c3337ad455da5e52afc5c0be'
            'SKIP'
            '1dc61031afecee037f1046d1761a3d2a3b572b37658b43f9850f6b6684c5dfd7'
            'SKIP'
            '0cb50422dfaf6180c6dda1672c6107e8ed955eae8fc907ab337c7c16e18060dc'
            'SKIP'
            '2bd5bd0ccdd48746ed4152cb8d622f898ac9a3ab8758d758dfdc4ffa8e612d64'
            'SKIP'
            'a05ea3b8bf6c58bc75d6a45c8e4ec43658bf3f275f93959e3c04a78f316ff803'
            'SKIP'
            'c17346d304cea690ef1ad3f6577859fa4cbce09d547dfef056cd4bef10850282'
            'SKIP'
            'a7d2037eaaef35e49693a17146b3bcc336c9a62d6401a305fedd85473c060bde'
            'SKIP'
            'f25f3eaf0d187c978e0243a49d19bd502891072695d4d13cd99c0409cbee04f4'
            'SKIP'
            '0901f2b829393864e7d41f2e94420460a010526cae594a820d2e61c5058065d4'
            'SKIP'
            'aa3ec3579317b2956ea293f970f489429555103d8db33c74eea0aca7f61f1683'
            'SKIP'
            '45a982bd7d605d44dd10bddb271449cee25304461843843b6595e554eca84b98'
            'SKIP'
            'a54f4839b0bbb6a8aa5256928f5e16de26e6f144ce897f273648be41688f0f44'
            'SKIP'
            '2e026f554bee52a750e55863e18192744e3c2dfad9f132c2ab53a639af0e94f8'
            'SKIP'
            '7d9a681ceeda9dbdb6e946c460cc5d747d4dd60b4a9d0cbce67fd64361c4def0'
            'SKIP'
            'f3884ffd36f66ddd882aa66f60e222fa678ce472820a933a3ee8c1cc4603ab74'
            'SKIP'
            '1563a0d2fc6e76e4767135d8f0fdc312dba68a020e5a0eef7cf3aa8566b9a80f'
            'SKIP'
            '9d3b9b00814b37db250dc19d022c32516366e87e7214cbfb78be5db63231bb00'
            'SKIP'
            'ab96dffde50b804b1250c9cfe24eff5f5a4fb40b401cf05185e1128b2e184e35'
            'SKIP'
            '49ae9a2a6a455528779309a3be9cea59812c0f15a34b09f9803a55c2ffb85334'
            'SKIP'
            '6b0f7815d0b39af61dbf4cc77080474f53006978d564a72eb695a1d6d6ba67e4'
            'SKIP'
            'c018556017877feb05ca062a0b3d3da7126e878e870f73f01a7b85e676f2cb3e'
            'SKIP'
            '210027ee1e3ab9f903966adfd10b980eb14ceafae9158e640766f6fce49284c5'
            'SKIP'
            '5edb532bfb7c24fdb054a51ae6c9d0712cbb2e7bb318e619970747461ee51665'
            'SKIP'
            'ac1ce55f54c86db999a6b460109480a8520cd228293f106a6b62131c016f5090'
            'SKIP'
            '8e76495658f0bd958a86230fb094778671d06667478d0c3c4afb6595a29f58e8'
            'SKIP'
            'd40ad9050a803e70240994343a0d190f61fe676814b98841f50d80802013ef04'
            'SKIP')

prepare() {
  for i in ${pkgname[@]}; do
    _pkglang=${i#*-}
    _pkglang=${_pkglang/still-}

    echo ${_pkglang} " unpacking..."
    cd "${srcdir}"/LibreOffice_${_rcver}_Linux_x86_rpm_langpack_${_pkglang}/RPMS

    # remove dictionaries if shipped - we ship them now in separate packages
    rm -vf *-dict-*.rpm || /bin/true

    for j in *.rpm
      do bsdtar -x -f $j
    done

    # the helppack rpm goes also into the langpack dir
    bsdtar -x -f \
      "${srcdir}"/LibreOffice_${_rcver}_Linux_x86_rpm_helppack_${_pkglang}/RPMS/*.rpm \
      || true
  done
}

_package() {
  pkgdesc="$2 language pack for LibreOffice still"
  depends=('libreoffice-still')
  provides=("libreoffice-$1")
  conflicts=("libreoffice-$1")

  cd "$srcdir"/LibreOffice_${_rcver}_Linux_x86_rpm_langpack_$1/RPMS
  mkdir -p "$pkgdir"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "$pkgdir"/usr/lib/libreoffice
  chown root:root -R "$pkgdir"/usr/lib/libreoffice
}

for _lang in "${_languages[@]}"; do
  _locale=${_lang%% *}
  _pkgname=libreoffice-still-$_locale
  source+=(${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_${_locale}.tar.gz{,.asc})

  if curl -o /dev/null -s -I -f ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_helppack_${_locale}.tar.gz; then
    source+=(${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_helppack_${_locale}.tar.gz{,.asc})
  fi

  pkgname+=($_pkgname)
  eval "package_${_pkgname}() {
    _package $_lang
  }"
done
